package com.oa.co.service;

import com.github.pagehelper.PageInfo;
import com.oa.co.pojo.Purchase;

import java.util.List;

/**
 * @Author Lone Ranger
 */
public interface PurchaseService {
    Integer addPurchase(Purchase purchase);

    Integer modifyPurchase(Purchase purchase);

    PageInfo<Purchase> getAllPurchases(Integer page, Integer limit,String purchase_id, String purchase_username, String purchase_dept);

    Integer deletePurchase(String purchase_id);

    Integer deletePurchaseMulti(List<Purchase> list);
}
